﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Penguins</title>
<link rel="stylesheet" type="text/css" href="http://www.netvibes.com/api/0.3/style.css" />
<script type="text/javascript" src="http://www.netvibes.com/api/0.3/emulation.js"></script>
<script type="text/javascript">
  NV_ONLOAD = function()
    {
    
	var flashVars = "";
	var bgColor = "FFFFFF";
	var movie = "http://abowman.com/projects/gadgets/penguins/penguins.swf";
        
	if (getValue("up_numPenguins") != null){
		
		flashVars += "up_backgroundImage="+ getValue("up_backgroundImage")+"&";
			
		flashVars += "up_numPenguins="+ getValue("up_numPenguins")+"&";
		
		flashVars += "up_numBabies="+ getValue("up_numBabies")+"&";
			
	}
	
        NV_CONTENT.innerHTML = '<object type="application/x-shockwave-flash" data="'+ movie +'" width="100%" height="200" id="penguins">'+
                            '<param name="movie" value="'+ movie +'"/>'+
                            '<param name="quality" value="high" />'+
                            '<param name="wmode" value="opaque" />'+
                            '<param name="bgcolor" value="'+ bgColor +'" />'+
                            '<param name="FlashVars" value="'+ flashVars +'"/>'+
                            '</object>';
			    
    }
  </script>
</head>
<body>
<form class="configuration" method="get" action="" id="configForm">
<table>

<tr>
<td>  
  <label>Background Image (jpg):</label>
</td>
<td>
  <input type="text" name="up_backgroundImage" id="up_backgroundImage" value="http://"/>
</td>
</tr>

<tr>
<td>  
  <label>Number of Penguins:</label>
</td>
<td>
  <select name="up_numPenguins" id="up_numPenguins">
   <option value="1">1</option>
   <option value="2">2</option>
   <option value="3">3</option>
   <option value="4">4</option>
   <option value="5">5</option>
   <option value="6">6</option>
   <option value="7">7</option>
   <option value="8">8</option>
   <option value="9">9</option>
   <option value="10">10</option>
   <option value="11">11</option>
   <option value="12">12</option>
   <option value="13">13</option>
   <option value="14">14</option>
   <option value="15">15 (for faster computers)</option>
  </select>
</td>
</tr>

<tr>
<td>  
  <label>Number of Babies:</label>
</td>
<td>
  <select name="up_numBabies" id="up_numBabies">
   <option value="1">1</option>
   <option value="2">2</option>
   <option value="3">3</option>
   <option value="4">4</option>
   <option value="5">5</option>
   <option value="6">6</option>
   <option value="7">7</option>
   <option value="8">8</option>
   <option value="9">9</option>
   <option value="10">10</option>
   <option value="11">11</option>
   <option value="12">12</option>
   <option value="13">13</option>
   <option value="14">14</option>
   <option value="15">15 (for faster computers)</option>
  </select>
</td>
</tr>

<tr>
<td> 
</td>
<td>
  <input type="submit" value="submit" id="submit"/>
</td>
</tr>
</table>
</form>
</body>
</html>